package hrms.dao;

import hrms.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    Article selectByPrimaryKey(@Param("id") Integer id);

    List<Article> selectAll();

    int updateByPrimaryKey(Article record);

    List<Article> selectPage();

    List<Article> selectSortPage(@Param("id") Integer id);
}